<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;

class Commander extends Model
{
    use HasDateTimeFormatter;
    use SoftDeletes;

    protected $table = 'commander';
    protected $guarded = [];

    public function groupGoods()
    {
        return $this->hasOne('Good','id','goods_id');
    }

}
